package com.smartmedical.system.domain;

import java.util.Date;

public class User {
    private Long id;
    private String phone;  //电话
    private String pwd;  //密码
    private String email;  //邮箱
    private String nickName;  //昵称
    private String userName;  //用户名
    private String headPic;  //头像
    private int sex;  //性别
    private int age;  //年龄
    private int height;  //身高
    private int weight;  //体重
    private String invitationCode;  //邀请码
    private Date updateTime;  //更新时间
    private Date createTime;  //创建时间


    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", phone='" + phone + '\'' +
                ", pwd='" + pwd + '\'' +
                ", email='" + email + '\'' +
                ", nickName='" + nickName + '\'' +
                ", userName='" + userName + '\'' +
                ", headPic='" + headPic + '\'' +
                ", sex=" + sex +
                ", age=" + age +
                ", height=" + height +
                ", weight=" + weight +
                ", invitationCode='" + invitationCode + '\'' +
                ", updateTime=" + updateTime +
                ", createTime=" + createTime +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getHeadPic() {
        return headPic;
    }

    public void setHeadPic(String headPic) {
        this.headPic = headPic;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public String getInvitationCode() {
        return invitationCode;
    }

    public void setInvitationCode(String invitationCode) {
        this.invitationCode = invitationCode;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public User(Long id, String phone, String pwd, String email, String nickName, String userName, String headPic, int sex, int age, int height, int weight, String invitationCode, Date updateTime, Date createTime) {
        this.id = id;
        this.phone = phone;
        this.pwd = pwd;
        this.email = email;
        this.nickName = nickName;
        this.userName = userName;
        this.headPic = headPic;
        this.sex = sex;
        this.age = age;
        this.height = height;
        this.weight = weight;
        this.invitationCode = invitationCode;
        this.updateTime = updateTime;
        this.createTime = createTime;
    }

    public User() {
    }
}
